package Misc;

public class Assert {
	
	/**
	 * Checks if an object is null, and throws an exception.
	 * @param o Object to check.
	 * @param str Exception message.
	 */
	public static void notNull(Object o, String str) throws IllegalArgumentException {
		if (o == null) {
			throw new IllegalArgumentException(str);
		}
	}
}
